//导入request.js工具
import request from "@/utils/request";
//调用注册接口的函数

export const getTrainees = (page, size, select, value) => {
  return request.get("/trainees", {
    params: {
      page: page,
      size: size,
      select: select,
      value: value,
    },
  });
};
export const deleteTrainees = (id) => {
  return request.delete("/trainees", {
    params: {
      id: id,
    },
  });
};
export const reviseTrainees = (form) => {
  console.log(form);
  return request.put("/trainees", form);
};
